package com.java.sample.common.util;

import java.util.Base64;

public class Base64Util {

    public static String encode(byte[] bytes){
        return Base64.getEncoder().encodeToString(bytes);
    }

    public static byte[] decode(String data){
        return Base64.getDecoder().decode(data);
    }

}
